<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>  

<script type="text/javascript"
	src='<c:url value="/resources/js/jquery-ui-1.8.16.custom.min.js"/>'></script>
<link rel="stylesheet"
	href='<c:url value="/resources/css/redmond/jquery-ui-1.8.16.custom.css"/>' />
<script type="text/javascript"
	src='<c:url value="/resources/js/jquery.ui.datepicker-zh-CN.js"/>'></script>
<script type="text/javascript"
	src='<c:url value="/resources/js/profit/search.js"/>'></script>
	
<form:form modelAttribute="member" id="memberForm">
<form:hidden path="pageIndex" id="pageIndex" value="1"/>
<fieldset>
	<legend>会员返利查询</legend>
	
	<table class="nostyle">
		<tbody>
			<tr>
				<td><label>会员卡号:	</label></td><td><input type="text" name="memberCardNumber"/></td>
				<td><label>会员姓名:</label></td><td><input type="text" name="name"/></td>
				<td><label>联系电话:</label></td><td><input type="text" name="phoneNumber"/></td>
			</tr>
			<tr>
				<td><label>身份证号码:</label></td><td><input type="text" name="idCardNumber"/></td>
				<td><label>家庭地址:</label></td><td><input type="text" name="address"/></td>
				<td><label>业务员:</label></td><td><select name="operatorID">
				<option selected="selected" value="0">请选择</option>
				<c:forEach items="${operatorList }" var="operator">
					<option value="${operator.id }">编号:${operator.id } 姓名:${operator.name }</option>
				</c:forEach>
			</select></td>
			</tr>
			<tr>
				<td><label>购买产品:</label></td><td><select name="goodsID">
				<option selected="selected" value="0">请选择</option>
				<c:forEach items="${goodsList }" var="goods">
					<option value="${goods.id }">编号:${goods.id } 名称:${goods.name }</option>
				</c:forEach>
			</select></td>
				<td><label>消费金额:</label></td><td><input type="text" name="goodsPrice" value=""/></td>
				<td><label>返利金额:</label></td><td><input type="text" name="profitReturnAmount"  value=""/></td>
			</tr>
			<tr>
				<td><label>所属部门:</label></td><td><select name="departmentID">
				<option selected="selected" value="0">请选择</option>
				<c:forEach items="${departmentList }" var="department">
					<option value="${department.id }">编号:${department.id } 名称:${department.departmentName }</option>
				</c:forEach>
			</select></td>
				<td><label>建卡时间:</label></td><th colspan="2"><input type="text" name="fromDate"  id="from" readonly/>-<input type="text" name="toDate"  readonly id="to"/></th>
				<td><select name="recordType">
						<option value="All" selected="selected">保留全部结果</option>
						<option value="UnFinished">去除已返利完成</option>
						<option value="Finished">去除未返利完成</option>
					</select>
				</td>
			</tr>
			<tr>
				<th colspan="5"><label></label></th>
				<td><input id="searchButton" type="button" value="查询" /></td>
			</tr>
		</tbody>
	</table>
</fieldset>
</form:form>
<div id="searchResultDiv" title="查询结果"></div>
<div id="returnHistoryDiv" title="返利记录">
</div>